Holiday Service
Dieser Service erlaubt den Zugriff auf die Feiertagsdefinitionen in TimePunch.
GetCountries
Mit Hilfe dieser Methode werden alle Länder und Bundesländer, die in TimePunch zur Feiertagsberechnung hinterlegt sind, abgerufen.
CountryDto[] GetCountries(
out TpFault fault,
TpAuthentication authentication);
| Needed Permission | publicHolidays@access | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication | |
| Return Value | List of all defined Countries |
GetPublicHolidays
Diese Methode lädt alle Feiertage des übergebenen Landes mit dem definierten Jahr.
PublicHolidayDto[] GetPublicHolidays(
out TpFault fault,
TpAuthentication authentication,
Guid countryId,
int year);
| Needed Permission | publicHolidays@access | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication | |
| countryId | Id of the country to load the holidays | |
| year | Year to load the holidays | |
| Return Value | List of all defined holidays |
SavePublicHolidays
Diese Methode speichert die übergebenen Feiertage zu dem Land und dem definierten Jahr.
void SavePublicHolidays(
out TpFault fault,
TpAuthentication authentication,
Guid countryId,
int year,
PublicHolidayDto[] publicHolidayDtos)
| Needed Permission | publicHolidays@manage | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication | |
| countryId | Id of the country to load the holidays | |
| year | Year to save the holidays |